home *** CD-ROM | disk | FTP | other *** search
/ gdead.berkeley.edu / gdead.berkeley.edu.tar / gdead.berkeley.edu / pub / gdead / mac / stack-o-dead-1.8 / stack-o-dead-1.8.2.sit.hqx / Dead Stats / background_2721.xml < prev    next >
Extensible Markup Language  |  1991-02-28  |  31KB  |  820 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>2721</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_2492.pbm</bitmap>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_8385.css" />
  11.     <part>
  12.         <id>1</id>
  13.         <type>button</type>
  14.         <visible> <true /> </visible>
  15.         <reserved5> 0 </reserved5>
  16.         <reserved4> 0 </reserved4>
  17.         <reserved3> 0 </reserved3>
  18.         <reserved2> 0 </reserved2>
  19.         <reserved1> 0 </reserved1>
  20.         <enabled> <true /> </enabled>
  21.         <rect>
  22.             <left>402</left>
  23.             <top>86</top>
  24.             <right>498</right>
  25.             <bottom>104</bottom>
  26.         </rect>
  27.         <style>radiobutton</style>
  28.         <showName> <true /> </showName>
  29.         <highlight> <false /> </highlight>
  30.         <autoHighlight> <false /> </autoHighlight>
  31.         <sharedHighlight> <true /> </sharedHighlight>
  32.         <family>0</family>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>center</textAlign>
  36.         <font>Chicago</font>
  37.         <textSize>12</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <name>Show List</name>
  40.         <script>--  This button displays the list of shows for the given--  year, including show date, number of songs, and the location----Option Key----  The option key causes the contents of the show list to be rebuilt--  This involves re-scanning the Dead Shows stack.on mouseUpif the commandKey is down thendoHelpexit mouseUpend if--lock screenput 0 into totSongsput 0 into totForAvg--set the hilite of bg button "Song List" to falseif the optionKey is down thenput empty into theListput 0 into showCountpush this cardput  Trim( field "Year" ) into tmpput tmp - 1900 into theYearput "finding first show in " & theYearset the cursor to watchgo stack "Dead Shows"goFirstCardOfYear theYearput "Building list..."put the id of this card into firstIDrepeat forevershowBusyput field "total songs" into totput Trim( field "date" ) & tab & "(" & tot & ")  " &┬¼field "location" & return after theListadd 1 to showCountif tot > 4 thenadd 1 to totForAvgadd tot to totSongsend ifshowBusygo next cardif piece( field "date", "/", 3 )  is not theYear then exit repeatshowBusyend repeatpop cardput theList into field "Show List"put ExpandTabs( theList, 10 ) into field "Show List"put showCount & " shows..." into field "Show Title"put showCount into field "Total Shows"put totSongs into field "Total Songs"if totForAvg > 0 thenput totSongs / totForAvg into avgelseput 0 into avgend ifput ( round( avg * 100 ) / 100 ) into field "Average"hide messageend ifmakeCurrent "Show"unlock screen with visual effect dissolve fastend mouseUp</script>
  41.     </part>
  42.     <part>
  43.         <id>2</id>
  44.         <type>field</type>
  45.         <visible> <true /> </visible>
  46.         <dontWrap> <false /> </dontWrap>
  47.         <dontSearch> <false /> </dontSearch>
  48.         <sharedText> <false /> </sharedText>
  49.         <fixedLineHeight> <true /> </fixedLineHeight>
  50.         <autoTab> <true /> </autoTab>
  51.         <lockText> <false /> </lockText>
  52.         <rect>
  53.             <left>56</left>
  54.             <top>22</top>
  55.             <right>106</right>
  56.             <bottom>39</bottom>
  57.         </rect>
  58.         <style>transparent</style>
  59.         <autoSelect> <false /> </autoSelect>
  60.         <showLines> <false /> </showLines>
  61.         <wideMargins> <false /> </wideMargins>
  62.         <multipleLines> <false /> </multipleLines>
  63.         <reservedFamily> 0 </reservedFamily>
  64.         <titleWidth>0</titleWidth>
  65.         <icon>0</icon>
  66.         <textAlign>left</textAlign>
  67.         <font>Geneva</font>
  68.         <textSize>12</textSize>
  69.         <textStyle>condense</textStyle>
  70.         <textStyle>bold</textStyle>
  71.         <textHeight>16</textHeight>
  72.         <name>Year</name>
  73.         <script></script>
  74.     </part>
  75.     <part>
  76.         <id>3</id>
  77.         <type>field</type>
  78.         <visible> <false /> </visible>
  79.         <dontWrap> <false /> </dontWrap>
  80.         <dontSearch> <false /> </dontSearch>
  81.         <sharedText> <false /> </sharedText>
  82.         <fixedLineHeight> <true /> </fixedLineHeight>
  83.         <autoTab> <false /> </autoTab>
  84.         <lockText> <false /> </lockText>
  85.         <rect>
  86.             <left>12</left>
  87.             <top>41</top>
  88.             <right>231</right>
  89.             <bottom>59</bottom>
  90.         </rect>
  91.         <style>transparent</style>
  92.         <autoSelect> <false /> </autoSelect>
  93.         <showLines> <false /> </showLines>
  94.         <wideMargins> <false /> </wideMargins>
  95.         <multipleLines> <false /> </multipleLines>
  96.         <reservedFamily> 0 </reservedFamily>
  97.         <titleWidth>0</titleWidth>
  98.         <icon>0</icon>
  99.         <textAlign>left</textAlign>
  100.         <font>Geneva</font>
  101.         <textSize>12</textSize>
  102.         <textStyle>condense</textStyle>
  103.         <textStyle>bold</textStyle>
  104.         <textHeight>16</textHeight>
  105.         <name>Show Title</name>
  106.         <script></script>
  107.     </part>
  108.     <part>
  109.         <id>4</id>
  110.         <type>field</type>
  111.         <visible> <false /> </visible>
  112.         <dontWrap> <true /> </dontWrap>
  113.         <dontSearch> <false /> </dontSearch>
  114.         <sharedText> <false /> </sharedText>
  115.         <fixedLineHeight> <true /> </fixedLineHeight>
  116.         <autoTab> <false /> </autoTab>
  117.         <lockText> <false /> </lockText>
  118.         <rect>
  119.             <left>12</left>
  120.             <top>60</top>
  121.             <right>390</right>
  122.             <bottom>334</bottom>
  123.         </rect>
  124.         <style>scrolling</style>
  125.         <autoSelect> <false /> </autoSelect>
  126.         <showLines> <false /> </showLines>
  127.         <wideMargins> <false /> </wideMargins>
  128.         <multipleLines> <false /> </multipleLines>
  129.         <reservedFamily> 0 </reservedFamily>
  130.         <titleWidth>0</titleWidth>
  131.         <icon>0</icon>
  132.         <textAlign>left</textAlign>
  133.         <font>Monaco</font>
  134.         <textSize>9</textSize>
  135.         <textStyle>plain</textStyle>
  136.         <textHeight>12</textHeight>
  137.         <name>Show List</name>
  138.         <script></script>
  139.     </part>
  140.     <part>
  141.         <id>5</id>
  142.         <type>field</type>
  143.         <visible> <false /> </visible>
  144.         <dontWrap> <false /> </dontWrap>
  145.         <dontSearch> <false /> </dontSearch>
  146.         <sharedText> <true /> </sharedText>
  147.         <fixedLineHeight> <true /> </fixedLineHeight>
  148.         <autoTab> <false /> </autoTab>
  149.         <lockText> <false /> </lockText>
  150.         <rect>
  151.             <left>409</left>
  152.             <top>32</top>
  153.             <right>468</right>
  154.             <bottom>54</bottom>
  155.         </rect>
  156.         <style>transparent</style>
  157.         <autoSelect> <false /> </autoSelect>
  158.         <showLines> <false /> </showLines>
  159.         <wideMargins> <false /> </wideMargins>
  160.         <multipleLines> <false /> </multipleLines>
  161.         <reservedFamily> 0 </reservedFamily>
  162.         <titleWidth>0</titleWidth>
  163.         <icon>0</icon>
  164.         <textAlign>left</textAlign>
  165.         <font>Geneva</font>
  166.         <textSize>14</textSize>
  167.         <textStyle>condense</textStyle>
  168.         <textStyle>bold</textStyle>
  169.         <textHeight>18</textHeight>
  170.         <name>Current List</name>
  171.         <script></script>
  172.     </part>
  173.     <part>
  174.         <id>6</id>
  175.         <type>button</type>
  176.         <visible> <true /> </visible>
  177.         <reserved5> 0 </reserved5>
  178.         <reserved4> 0 </reserved4>
  179.         <reserved3> 0 </reserved3>
  180.         <reserved2> 0 </reserved2>
  181.         <reserved1> 0 </reserved1>
  182.         <enabled> <true /> </enabled>
  183.         <rect>
  184.             <left>402</left>
  185.             <top>106</top>
  186.             <right>499</right>
  187.             <bottom>124</bottom>
  188.         </rect>
  189.         <style>radiobutton</style>
  190.         <showName> <true /> </showName>
  191.         <highlight> <true /> </highlight>
  192.         <autoHighlight> <false /> </autoHighlight>
  193.         <sharedHighlight> <true /> </sharedHighlight>
  194.         <family>0</family>
  195.         <titleWidth>0</titleWidth>
  196.         <icon>0</icon>
  197.         <textAlign>center</textAlign>
  198.         <font>Chicago</font>
  199.         <textSize>12</textSize>
  200.         <textStyle>plain</textStyle>
  201.         <name>Song List</name>
  202.         <script>--  This button displays the list of songs for the given--  year, ordered by descending frequency including the number--  of times played, and the song title----Option Key----  The option key causes the contents of the songs list to be rebuilt--  This involves sorting the Songs stack by descending frequency--  for the year, building the list, and then re-sorting the songs--  stack by title before returning.  Songs not played are not--  displayed.on mouseUpif the commandKey is down thendoHelpexit mouseUpend if--lock screen-- set the hilite of the target to true-- set the hilite of bg button "Show List" to falseif the optionKey is down thenput  Trim( field "Year" ) into theYearbuildSongList theYear, trueend ifmakeCurrent "Song"hide messageunlock screen with visual effect dissolve fastend mouseUp</script>
  203.     </part>
  204.     <part>
  205.         <id>7</id>
  206.         <type>field</type>
  207.         <visible> <true /> </visible>
  208.         <dontWrap> <false /> </dontWrap>
  209.         <dontSearch> <false /> </dontSearch>
  210.         <sharedText> <false /> </sharedText>
  211.         <fixedLineHeight> <true /> </fixedLineHeight>
  212.         <autoTab> <false /> </autoTab>
  213.         <lockText> <false /> </lockText>
  214.         <rect>
  215.             <left>12</left>
  216.             <top>60</top>
  217.             <right>390</right>
  218.             <bottom>334</bottom>
  219.         </rect>
  220.         <style>scrolling</style>
  221.         <autoSelect> <false /> </autoSelect>
  222.         <showLines> <false /> </showLines>
  223.         <wideMargins> <false /> </wideMargins>
  224.         <multipleLines> <false /> </multipleLines>
  225.         <reservedFamily> 0 </reservedFamily>
  226.         <titleWidth>0</titleWidth>
  227.         <icon>0</icon>
  228.         <textAlign>left</textAlign>
  229.         <font>Monaco</font>
  230.         <textSize>9</textSize>
  231.         <textStyle>plain</textStyle>
  232.         <textHeight>12</textHeight>
  233.         <name>Song List</name>
  234.         <script></script>
  235.     </part>
  236.     <part>
  237.         <id>8</id>
  238.         <type>field</type>
  239.         <visible> <true /> </visible>
  240.         <dontWrap> <false /> </dontWrap>
  241.         <dontSearch> <false /> </dontSearch>
  242.         <sharedText> <false /> </sharedText>
  243.         <fixedLineHeight> <true /> </fixedLineHeight>
  244.         <autoTab> <false /> </autoTab>
  245.         <lockText> <false /> </lockText>
  246.         <rect>
  247.             <left>12</left>
  248.             <top>42</top>
  249.             <right>224</right>
  250.             <bottom>60</bottom>
  251.         </rect>
  252.         <style>transparent</style>
  253.         <autoSelect> <false /> </autoSelect>
  254.         <showLines> <false /> </showLines>
  255.         <wideMargins> <false /> </wideMargins>
  256.         <multipleLines> <false /> </multipleLines>
  257.         <reservedFamily> 0 </reservedFamily>
  258.         <titleWidth>0</titleWidth>
  259.         <icon>0</icon>
  260.         <textAlign>left</textAlign>
  261.         <font>Geneva</font>
  262.         <textSize>12</textSize>
  263.         <textStyle>condense</textStyle>
  264.         <textStyle>bold</textStyle>
  265.         <textHeight>16</textHeight>
  266.         <name>Song Title</name>
  267.         <script></script>
  268.     </part>
  269.     <part>
  270.         <id>9</id>
  271.         <type>button</type>
  272.         <visible> <true /> </visible>
  273.         <reserved5> 0 </reserved5>
  274.         <reserved4> 0 </reserved4>
  275.         <reserved3> 0 </reserved3>
  276.         <reserved2> 0 </reserved2>
  277.         <reserved1> 0 </reserved1>
  278.         <enabled> <true /> </enabled>
  279.         <rect>
  280.             <left>417</left>
  281.             <top>216</top>
  282.             <right>479</right>
  283.             <bottom>239</bottom>
  284.         </rect>
  285.         <style>roundrect</style>
  286.         <showName> <true /> </showName>
  287.         <highlight> <false /> </highlight>
  288.         <autoHighlight> <false /> </autoHighlight>
  289.         <sharedHighlight> <true /> </sharedHighlight>
  290.         <family>0</family>
  291.         <titleWidth>0</titleWidth>
  292.         <icon>0</icon>
  293.         <textAlign>center</textAlign>
  294.         <font>Chicago</font>
  295.         <textSize>12</textSize>
  296.         <textStyle>plain</textStyle>
  297.         <name>Print...</name>
  298.         <script>--  This button will send the contents of the currently displayed--  list (either Shows or Songs) to the printer with some header--  information.on mouseUpif the commandKey is down thendoHelpexit mouseUpend if--put field "Title" into theTitleput field "Current List" into theNameopen file saveFileput field "Year" & " : " & field (theName && "Title" ) & return┬¼& "----------" & return & field (theName && "List" ) into field "temp"PrintField card, "temp", "Geneva", 10, 13put empty into field "temp"end mouseUp</script>
  299.     </part>
  300.     <part>
  301.         <id>10</id>
  302.         <type>button</type>
  303.         <visible> <true /> </visible>
  304.         <reserved5> 0 </reserved5>
  305.         <reserved4> 0 </reserved4>
  306.         <reserved3> 0 </reserved3>
  307.         <reserved2> 0 </reserved2>
  308.         <reserved1> 0 </reserved1>
  309.         <enabled> <true /> </enabled>
  310.         <rect>
  311.             <left>417</left>
  312.             <top>242</top>
  313.             <right>479</right>
  314.             <bottom>265</bottom>
  315.         </rect>
  316.         <style>roundrect</style>
  317.         <showName> <true /> </showName>
  318.         <highlight> <false /> </highlight>
  319.         <autoHighlight> <false /> </autoHighlight>
  320.         <sharedHighlight> <true /> </sharedHighlight>
  321.         <family>0</family>
  322.         <titleWidth>0</titleWidth>
  323.         <icon>0</icon>
  324.         <textAlign>center</textAlign>
  325.         <font>Chicago</font>
  326.         <textSize>12</textSize>
  327.         <textStyle>plain</textStyle>
  328.         <name>Save...</name>
  329.         <script>--  This button will save the contents of the currently displayed--  list (either Shows or Songs) to a file with some header--  information.  It will ask for the name of the file.on mouseUpglobal deadDirif the commandKey is down thendoHelpexit mouseUpend if--ask "Save to File..." with deadDirput it into saveFileput field "Current List" into theNameif saveFile is not empty thenopen file saveFilewrite  field "Year" & " : " & field (theName && "Title" ) &┬¼return & "---------------" & return & field (theName && "List" ) ┬¼to file saveFileclose file saveFileend ifend mouseUp</script>
  330.     </part>
  331.     <part>
  332.         <id>11</id>
  333.         <type>field</type>
  334.         <visible> <false /> </visible>
  335.         <dontWrap> <false /> </dontWrap>
  336.         <dontSearch> <false /> </dontSearch>
  337.         <sharedText> <false /> </sharedText>
  338.         <fixedLineHeight> <true /> </fixedLineHeight>
  339.         <autoTab> <false /> </autoTab>
  340.         <lockText> <false /> </lockText>
  341.         <rect>
  342.             <left>481</left>
  343.             <top>26</top>
  344.             <right>505</right>
  345.             <bottom>48</bottom>
  346.         </rect>
  347.         <style>transparent</style>
  348.         <autoSelect> <false /> </autoSelect>
  349.         <showLines> <false /> </showLines>
  350.         <wideMargins> <false /> </wideMargins>
  351.         <multipleLines> <false /> </multipleLines>
  352.         <reservedFamily> 0 </reservedFamily>
  353.         <titleWidth>0</titleWidth>
  354.         <icon>0</icon>
  355.         <textAlign>left</textAlign>
  356.         <font>Monaco</font>
  357.         <textSize>12</textSize>
  358.         <textStyle>plain</textStyle>
  359.         <textHeight>16</textHeight>
  360.         <name>temp</name>
  361.         <script></script>
  362.     </part>
  363.     <part>
  364.         <id>17</id>
  365.         <type>button</type>
  366.         <visible> <true /> </visible>
  367.         <reserved5> 0 </reserved5>
  368.         <reserved4> 0 </reserved4>
  369.         <reserved3> 0 </reserved3>
  370.         <reserved2> 0 </reserved2>
  371.         <reserved1> 0 </reserved1>
  372.         <enabled> <true /> </enabled>
  373.         <rect>
  374.             <left>395</left>
  375.             <top>317</top>
  376.             <right>420</right>
  377.             <bottom>340</bottom>
  378.         </rect>
  379.         <style>transparent</style>
  380.         <showName> <false /> </showName>
  381.         <highlight> <false /> </highlight>
  382.         <autoHighlight> <false /> </autoHighlight>
  383.         <sharedHighlight> <true /> </sharedHighlight>
  384.         <family>0</family>
  385.         <titleWidth>0</titleWidth>
  386.         <icon>20689</icon>
  387.         <textAlign>center</textAlign>
  388.         <font>Chicago</font>
  389.         <textSize>12</textSize>
  390.         <textStyle>plain</textStyle>
  391.         <name>Home</name>
  392.         <script>-- This card sends you to the Home stackon mouseUpif the commandKey is down thendoHelpexit mouseUpend if--lock screengo stack "Dead Utility"playDeadSong "Franklins"go "Home"unlock screen with visual effect iris closeend mouseUp</script>
  393.     </part>
  394.     <part>
  395.         <id>12</id>
  396.         <type>button</type>
  397.         <visible> <true /> </visible>
  398.         <reserved5> 0 </reserved5>
  399.         <reserved4> 0 </reserved4>
  400.         <reserved3> 0 </reserved3>
  401.         <reserved2> 0 </reserved2>
  402.         <reserved1> 0 </reserved1>
  403.         <enabled> <true /> </enabled>
  404.         <rect>
  405.             <left>448</left>
  406.             <top>313</top>
  407.             <right>473</right>
  408.             <bottom>338</bottom>
  409.         </rect>
  410.         <style>transparent</style>
  411.         <showName> <false /> </showName>
  412.         <highlight> <false /> </highlight>
  413.         <autoHighlight> <false /> </autoHighlight>
  414.         <sharedHighlight> <true /> </sharedHighlight>
  415.         <family>0</family>
  416.         <titleWidth>0</titleWidth>
  417.         <icon>1013</icon>
  418.         <textAlign>center</textAlign>
  419.         <font>Chicago</font>
  420.         <textSize>12</textSize>
  421.         <textStyle>plain</textStyle>
  422.         <name>Next</name>
  423.         <script>--  This button will send you to the next card.on mouseDownif the optionKey is down thenshow all cardsexit mouseDownend if--go next cardend mouseDownon mouseStillDowngo next cardend mouseStillDown</script>
  424.     </part>
  425.     <part>
  426.         <id>13</id>
  427.         <type>button</type>
  428.         <visible> <true /> </visible>
  429.         <reserved5> 0 </reserved5>
  430.         <reserved4> 0 </reserved4>
  431.         <reserved3> 0 </reserved3>
  432.         <reserved2> 0 </reserved2>
  433.         <reserved1> 0 </reserved1>
  434.         <enabled> <true /> </enabled>
  435.         <rect>
  436.             <left>423</left>
  437.             <top>313</top>
  438.             <right>448</right>
  439.             <bottom>338</bottom>
  440.         </rect>
  441.         <style>transparent</style>
  442.         <showName> <false /> </showName>
  443.         <highlight> <false /> </highlight>
  444.         <autoHighlight> <false /> </autoHighlight>
  445.         <sharedHighlight> <true /> </sharedHighlight>
  446.         <family>0</family>
  447.         <titleWidth>0</titleWidth>
  448.         <icon>1014</icon>
  449.         <textAlign>center</textAlign>
  450.         <font>Chicago</font>
  451.         <textSize>12</textSize>
  452.         <textStyle>plain</textStyle>
  453.         <name>Prev</name>
  454.         <script>--  This button will send you to the previous card.on mouseDownif the optionKey is down thenshow all cardsexit mouseDownend if--go prev cardend mouseDownon mouseStillDowngo prev cardend mouseStillDown</script>
  455.     </part>
  456.     <part>
  457.         <id>14</id>
  458.         <type>button</type>
  459.         <visible> <true /> </visible>
  460.         <reserved5> 0 </reserved5>
  461.         <reserved4> 0 </reserved4>
  462.         <reserved3> 0 </reserved3>
  463.         <reserved2> 0 </reserved2>
  464.         <reserved1> 0 </reserved1>
  465.         <enabled> <true /> </enabled>
  466.         <rect>
  467.             <left>417</left>
  468.             <top>191</top>
  469.             <right>479</right>
  470.             <bottom>213</bottom>
  471.         </rect>
  472.         <style>roundrect</style>
  473.         <showName> <true /> </showName>
  474.         <highlight> <false /> </highlight>
  475.         <autoHighlight> <false /> </autoHighlight>
  476.         <sharedHighlight> <true /> </sharedHighlight>
  477.         <family>0</family>
  478.         <titleWidth>0</titleWidth>
  479.         <icon>0</icon>
  480.         <textAlign>center</textAlign>
  481.         <font>Chicago</font>
  482.         <textSize>12</textSize>
  483.         <textStyle>plain</textStyle>
  484.         <name>New</name>
  485.         <script>--  This button will create a new Year Stats card--  It will first ask for the year to be entered, and then--  set up a new card.on mouseUpif the commandKey is down thendoHelpexit mouseUpend if--ask "Create new card for what year..."if it is empty then exit mouseUpput it into theYeardoMenu "New Card"put theYear into field "year"--type tabend mouseUp</script>
  486.     </part>
  487.     <part>
  488.         <id>16</id>
  489.         <type>button</type>
  490.         <visible> <true /> </visible>
  491.         <reserved5> 0 </reserved5>
  492.         <reserved4> 0 </reserved4>
  493.         <reserved3> 0 </reserved3>
  494.         <reserved2> 0 </reserved2>
  495.         <reserved1> 0 </reserved1>
  496.         <enabled> <true /> </enabled>
  497.         <rect>
  498.             <left>480</left>
  499.             <top>314</top>
  500.             <right>500</right>
  501.             <bottom>336</bottom>
  502.         </rect>
  503.         <style>transparent</style>
  504.         <showName> <false /> </showName>
  505.         <highlight> <false /> </highlight>
  506.         <autoHighlight> <true /> </autoHighlight>
  507.         <sharedHighlight> <true /> </sharedHighlight>
  508.         <family>0</family>
  509.         <titleWidth>0</titleWidth>
  510.         <icon>26635</icon>
  511.         <textAlign>center</textAlign>
  512.         <font>Chicago</font>
  513.         <textSize>12</textSize>
  514.         <textStyle>plain</textStyle>
  515.         <name>Help</name>
  516.         <script>--This stack provides some statistical functions about the Grateful--Dead gathered from the Shows and Songs stacks.  It is only as--accurate as they are.----To view any of the stat lists for a given year, just click the--appropriate button.  In order to (re)generate the list, click--the appropriate button with the option key down.----This stack is quite new, and as yet has more to be done.  I am--sending it out now as the first few lists are commonly reffered--to (by me anyway) and I thought this much would be useful.----Please let me know of anything more you would like to see in--the way of statistics.on mouseUpif the visible of field "Help" is true thenclick at the loc of field "Help"elsedoHelpend ifend mouseUp</script>
  517.     </part>
  518.     <part>
  519.         <id>18</id>
  520.         <type>button</type>
  521.         <visible> <true /> </visible>
  522.         <reserved5> 0 </reserved5>
  523.         <reserved4> 0 </reserved4>
  524.         <reserved3> 0 </reserved3>
  525.         <reserved2> 0 </reserved2>
  526.         <reserved1> 0 </reserved1>
  527.         <enabled> <true /> </enabled>
  528.         <rect>
  529.             <left>420</left>
  530.             <top>25</top>
  531.             <right>475</right>
  532.             <bottom>81</bottom>
  533.         </rect>
  534.         <style>transparent</style>
  535.         <showName> <false /> </showName>
  536.         <highlight> <false /> </highlight>
  537.         <autoHighlight> <true /> </autoHighlight>
  538.         <sharedHighlight> <true /> </sharedHighlight>
  539.         <family>0</family>
  540.         <titleWidth>0</titleWidth>
  541.         <icon>0</icon>
  542.         <textAlign>center</textAlign>
  543.         <font>Chicago</font>
  544.         <textSize>12</textSize>
  545.         <textStyle>plain</textStyle>
  546.         <name>hey now</name>
  547.         <script>--  This button plays a random dead tuneon mouseUpif the commandKey is down thendoHelpexit mouseUpend ifplayRandomDeadend mouseUp</script>
  548.     </part>
  549.     <part>
  550.         <id>19</id>
  551.         <type>field</type>
  552.         <visible> <true /> </visible>
  553.         <dontWrap> <false /> </dontWrap>
  554.         <dontSearch> <false /> </dontSearch>
  555.         <sharedText> <false /> </sharedText>
  556.         <fixedLineHeight> <true /> </fixedLineHeight>
  557.         <autoTab> <true /> </autoTab>
  558.         <lockText> <false /> </lockText>
  559.         <rect>
  560.             <left>124</left>
  561.             <top>22</top>
  562.             <right>164</right>
  563.             <bottom>39</bottom>
  564.         </rect>
  565.         <style>transparent</style>
  566.         <autoSelect> <false /> </autoSelect>
  567.         <showLines> <false /> </showLines>
  568.         <wideMargins> <false /> </wideMargins>
  569.         <multipleLines> <false /> </multipleLines>
  570.         <reservedFamily> 0 </reservedFamily>
  571.         <titleWidth>0</titleWidth>
  572.         <icon>0</icon>
  573.         <textAlign>right</textAlign>
  574.         <font>Geneva</font>
  575.         <textSize>12</textSize>
  576.         <textStyle>condense</textStyle>
  577.         <textStyle>bold</textStyle>
  578.         <textHeight>16</textHeight>
  579.         <name>Total Shows</name>
  580.         <script></script>
  581.     </part>
  582.     <part>
  583.         <id>20</id>
  584.         <type>field</type>
  585.         <visible> <true /> </visible>
  586.         <dontWrap> <false /> </dontWrap>
  587.         <dontSearch> <false /> </dontSearch>
  588.         <sharedText> <false /> </sharedText>
  589.         <fixedLineHeight> <true /> </fixedLineHeight>
  590.         <autoTab> <true /> </autoTab>
  591.         <lockText> <false /> </lockText>
  592.         <rect>
  593.             <left>239</left>
  594.             <top>22</top>
  595.             <right>290</right>
  596.             <bottom>40</bottom>
  597.         </rect>
  598.         <style>transparent</style>
  599.         <autoSelect> <false /> </autoSelect>
  600.         <showLines> <false /> </showLines>
  601.         <wideMargins> <false /> </wideMargins>
  602.         <multipleLines> <false /> </multipleLines>
  603.         <reservedFamily> 0 </reservedFamily>
  604.         <titleWidth>0</titleWidth>
  605.         <icon>0</icon>
  606.         <textAlign>right</textAlign>
  607.         <font>Geneva</font>
  608.         <textSize>12</textSize>
  609.         <textStyle>condense</textStyle>
  610.         <textStyle>bold</textStyle>
  611.         <textHeight>16</textHeight>
  612.         <name>Total Songs</name>
  613.         <script></script>
  614.     </part>
  615.     <part>
  616.         <id>21</id>
  617.         <type>field</type>
  618.         <visible> <true /> </visible>
  619.         <dontWrap> <false /> </dontWrap>
  620.         <dontSearch> <false /> </dontSearch>
  621.         <sharedText> <false /> </sharedText>
  622.         <fixedLineHeight> <true /> </fixedLineHeight>
  623.         <autoTab> <true /> </autoTab>
  624.         <lockText> <true /> </lockText>
  625.         <rect>
  626.             <left>239</left>
  627.             <top>40</top>
  628.             <right>290</right>
  629.             <bottom>58</bottom>
  630.         </rect>
  631.         <style>transparent</style>
  632.         <autoSelect> <false /> </autoSelect>
  633.         <showLines> <false /> </showLines>
  634.         <wideMargins> <false /> </wideMargins>
  635.         <multipleLines> <false /> </multipleLines>
  636.         <reservedFamily> 0 </reservedFamily>
  637.         <titleWidth>0</titleWidth>
  638.         <icon>0</icon>
  639.         <textAlign>right</textAlign>
  640.         <font>Geneva</font>
  641.         <textSize>12</textSize>
  642.         <textStyle>condense</textStyle>
  643.         <textStyle>bold</textStyle>
  644.         <textHeight>16</textHeight>
  645.         <name>Average</name>
  646.         <script>on mouseUpput field "Total Songs" / field "Total Shows" into avgput ( round( avg * 100 ) / 100 ) into meend mouseUp</script>
  647.     </part>
  648.     <part>
  649.         <id>23</id>
  650.         <type>button</type>
  651.         <visible> <true /> </visible>
  652.         <reserved5> 0 </reserved5>
  653.         <reserved4> 0 </reserved4>
  654.         <reserved3> 0 </reserved3>
  655.         <reserved2> 0 </reserved2>
  656.         <reserved1> 0 </reserved1>
  657.         <enabled> <true /> </enabled>
  658.         <rect>
  659.             <left>411</left>
  660.             <top>275</top>
  661.             <right>486</right>
  662.             <bottom>299</bottom>
  663.         </rect>
  664.         <style>shadow</style>
  665.         <showName> <true /> </showName>
  666.         <highlight> <false /> </highlight>
  667.         <autoHighlight> <false /> </autoHighlight>
  668.         <sharedHighlight> <true /> </sharedHighlight>
  669.         <family>0</family>
  670.         <titleWidth>0</titleWidth>
  671.         <icon>0</icon>
  672.         <textAlign>center</textAlign>
  673.         <font>Chicago</font>
  674.         <textSize>12</textSize>
  675.         <textStyle>plain</textStyle>
  676.         <name>= Stacks =</name>
  677.         <script>--  This button will present a pop-up menu of stack names.--  Hold the mouse button down for a few seconds until--  the menu appears.  Select one of the choices to--  go to that stack.on mouseDownif the commandKey is down thendoHelpexit mouseDownend if--global stackLastput true into useLastif the optionKey is down then put false into useLastif stackLast is empty thenput "1,1,1,1,1,1" into stackListput the rect of me into thePtif item 2 of thePt > 230 then put 230 into item 2 of thePtput "Shows;Songs;Tapes;Labels;Utility" into listput popUp( thePt, list ) into choice-- if it is 0, then no choice was made...if choice is not 0 thenput piece( list, ";", choice ) into theStackif theStack is not "Songs" then put "Dead " before theStackgo stack theStackend ifend ifend mouseDown</script>
  678.     </part>
  679.     <part>
  680.         <id>25</id>
  681.         <type>button</type>
  682.         <visible> <true /> </visible>
  683.         <reserved5> 0 </reserved5>
  684.         <reserved4> 0 </reserved4>
  685.         <reserved3> 0 </reserved3>
  686.         <reserved2> 0 </reserved2>
  687.         <reserved1> 0 </reserved1>
  688.         <enabled> <true /> </enabled>
  689.         <rect>
  690.             <left>402</left>
  691.             <top>126</top>
  692.             <right>499</right>
  693.             <bottom>144</bottom>
  694.         </rect>
  695.         <style>radiobutton</style>
  696.         <showName> <true /> </showName>
  697.         <highlight> <false /> </highlight>
  698.         <autoHighlight> <false /> </autoHighlight>
  699.         <sharedHighlight> <true /> </sharedHighlight>
  700.         <family>0</family>
  701.         <titleWidth>0</titleWidth>
  702.         <icon>0</icon>
  703.         <textAlign>center</textAlign>
  704.         <font>Chicago</font>
  705.         <textSize>12</textSize>
  706.         <textStyle>plain</textStyle>
  707.         <name>Top Ten List</name>
  708.         <script>--  This button displays the list of songs for the given--  year, ordered by descending frequency including the number--  of times played, and the song title----Option Key----  The option key causes the contents of the songs list to be rebuilt--  This involves sorting the Songs stack by descending frequency for--  the year, building the list, and then re-sorting the songs stack--  by title before returning.  Songs not played are not displayed.on mouseUpif the commandKey is down thendoHelpexit mouseUpend if--lock screenput 0 into totSongs--set the hilite of the target to true--set the hilite of bg button "Show List" to false--set the hilite of bg button "Song List" to falseif the optionKey is down thenput empty into theListput 0 into songCountpush this cardput  Trim( field "Year" ) into theYearput "c" & theYear into sortFieldgo stack "Songs"put "Sorting songs by frequency played for in " & theYear & "..."set the cursor to watchsort descending numeric by field sortField--put "Building list..."repeat for 10put field sortField into countif count < 1 then exit repeatshowBusyput "(" & count & ")  " & field "title" & return after theListadd count to totSongsadd 1 to songCountshowBusygo next cardend repeatput "Re-sorting..."set the cursor to watchsort by field "title"pop cardput theList into field "Song List"-- put ExpandTabs( theList, 11 ) into field "Show List"put songCount & " different songs..." into field "Song Title"put totSongs into field "Total Songs"end ifmakeCurrent "Top Ten"hide messageunlock screen with visual effect dissolve fastend mouseUp</script>
  709.     </part>
  710.     <part>
  711.         <id>27</id>
  712.         <type>field</type>
  713.         <visible> <false /> </visible>
  714.         <dontWrap> <true /> </dontWrap>
  715.         <dontSearch> <false /> </dontSearch>
  716.         <sharedText> <false /> </sharedText>
  717.         <fixedLineHeight> <true /> </fixedLineHeight>
  718.         <autoTab> <false /> </autoTab>
  719.         <lockText> <false /> </lockText>
  720.         <rect>
  721.             <left>12</left>
  722.             <top>60</top>
  723.             <right>390</right>
  724.             <bottom>334</bottom>
  725.         </rect>
  726.         <style>scrolling</style>
  727.         <autoSelect> <false /> </autoSelect>
  728.         <showLines> <false /> </showLines>
  729.         <wideMargins> <false /> </wideMargins>
  730.         <multipleLines> <false /> </multipleLines>
  731.         <reservedFamily> 0 </reservedFamily>
  732.         <titleWidth>0</titleWidth>
  733.         <icon>0</icon>
  734.         <textAlign>left</textAlign>
  735.         <font>Monaco</font>
  736.         <textSize>9</textSize>
  737.         <textStyle>plain</textStyle>
  738.         <textHeight>12</textHeight>
  739.         <name>Top Ten List</name>
  740.         <script></script>
  741.     </part>
  742.     <part>
  743.         <id>28</id>
  744.         <type>field</type>
  745.         <visible> <false /> </visible>
  746.         <dontWrap> <false /> </dontWrap>
  747.         <dontSearch> <false /> </dontSearch>
  748.         <sharedText> <false /> </sharedText>
  749.         <fixedLineHeight> <true /> </fixedLineHeight>
  750.         <autoTab> <false /> </autoTab>
  751.         <lockText> <false /> </lockText>
  752.         <rect>
  753.             <left>12</left>
  754.             <top>41</top>
  755.             <right>231</right>
  756.             <bottom>59</bottom>
  757.         </rect>
  758.         <style>transparent</style>
  759.         <autoSelect> <false /> </autoSelect>
  760.         <showLines> <false /> </showLines>
  761.         <wideMargins> <false /> </wideMargins>
  762.         <multipleLines> <false /> </multipleLines>
  763.         <reservedFamily> 0 </reservedFamily>
  764.         <titleWidth>0</titleWidth>
  765.         <icon>0</icon>
  766.         <textAlign>left</textAlign>
  767.         <font>Geneva</font>
  768.         <textSize>12</textSize>
  769.         <textStyle>condense</textStyle>
  770.         <textStyle>bold</textStyle>
  771.         <textHeight>16</textHeight>
  772.         <name>Top Ten Title</name>
  773.         <script></script>
  774.     </part>
  775.     <part>
  776.         <id>24</id>
  777.         <type>field</type>
  778.         <visible> <false /> </visible>
  779.         <dontWrap> <false /> </dontWrap>
  780.         <dontSearch> <true /> </dontSearch>
  781.         <sharedText> <true /> </sharedText>
  782.         <fixedLineHeight> <false /> </fixedLineHeight>
  783.         <autoTab> <false /> </autoTab>
  784.         <lockText> <true /> </lockText>
  785.         <rect>
  786.             <left>30</left>
  787.             <top>103</top>
  788.             <right>449</right>
  789.             <bottom>318</bottom>
  790.         </rect>
  791.         <style>scrolling</style>
  792.         <autoSelect> <false /> </autoSelect>
  793.         <showLines> <false /> </showLines>
  794.         <wideMargins> <true /> </wideMargins>
  795.         <multipleLines> <false /> </multipleLines>
  796.         <reservedFamily> 0 </reservedFamily>
  797.         <titleWidth>0</titleWidth>
  798.         <icon>0</icon>
  799.         <textAlign>left</textAlign>
  800.         <font>Geneva</font>
  801.         <textSize>10</textSize>
  802.         <textStyle>bold</textStyle>
  803.         <textHeight>13</textHeight>
  804.         <name>help text</name>
  805.         <script>on mouseUplock screenhide meunlock screen with visual effect dissolve fastend mouseUp</script>
  806.     </part>
  807.     <content>
  808.         <layer>background</layer>
  809.         <id>5</id>
  810.         <text>Song</text>
  811.     </content>
  812.     <content>
  813.         <layer>background</layer>
  814.         <id>24</id>
  815.         <text>Help for bkgnd button "Song List"...  This button displays the list of songs for the given  year, ordered by descending frequency including the number  of times played, and the song titleOption Key  The option key causes the contents of the songs list to be rebuilt  This involves sorting the Songs stack by descending frequency  for the year, building the list, and then re-sorting the songs  stack by title before returning.  Songs not played are not  displayed.</text>
  816.     </content>
  817.     <name></name>
  818.     <script>on allYearSongListput "19" & piece( the date, "/", 3 ) into thisYearput thisYearpush this cardlock screenrepeat with year = 1965 to thisYearfind year in field "Year"if the result is empty then    -- found it...buildSongList year, trueend ifend repeatpop cardunlock screenend allYearSongListon buildSongList theYear, reSortput empty into theListput 0 into songCountput 0 into totSongspush this cardput "c" & theYear into sortFieldgo stack "Songs"put "Sorting songs by frequency played for in " & theYear & "..."set the cursor to watchsort descending numeric by field sortField--put "Building list..."repeat for the number of cardsput field sortField into countif count < 1 then exit repeatshowBusyput "(" & count & ")  " & field "title" & return after theListadd count to totSongsadd 1 to songCountshowBusygo next cardend repeatif reSort is true thenput "Re-sorting..."set the cursor to watchsort by field "title"end ifpop cardput theList into field "Song List"-- put ExpandTabs( theList, 11 ) into field "Show List"put songCount & " different songs..." into field "Song Title"put totSongs into field "Total Songs"end buildSongList</script>
  819. </background>
  820.